package com.fingard.dsp.bank.reqrespobj.currtransperiod;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.xml.XmlTextReader;

/**
 * Created by F on 2018/11/19.
 */
public class Req4006 extends RequestBase {
//    <ReqSeqID>支付请求码</ReqSeqID>
//    <BgnDate>支付提交时间</BgnDate>

    public String askNumber;
    public String bgnDate;

    private XmlTextReader xmlReader;
    public Req4006(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception{
        reqHeader = p_header;
        xmlReader = p_xmlReader;
        if(p_xmlReader.read(PATH_Detail)){//"/ATSYH/TransReq/TransParam/DetailRecord"
            askNumber = p_xmlReader.readedXElement.getSingleText("ReqSeqID");
            bgnDate = p_xmlReader.readedXElement.getSingleText("BgnDate");
        }
        else{
            throw new Exception("不存在节点："+PATH_Detail);
        }
    }
}
